package com.wd.service;

import com.wd.entity.Blog;

import java.util.Date;
import java.util.List;

public interface BlogService {

    public int selAllBlogCount() throws Exception;

    public void updStar(int id,int star) throws Exception;

    public int selUserBlogCount(String author) throws Exception;

    public List<Blog> selAllBlog() throws Exception;

    public List<Blog> selLikeBlog(String author) throws Exception;

    public List<Blog> selUserBlog(String author) throws Exception;

    public int insBlog(Blog blog) throws Exception;

    public int delBlog(int id) throws Exception;

    public int updBlog(Blog blog) throws Exception;

    public Blog selBlogById(int id)throws Exception;

    public List<Blog> selRightBlog() throws Exception;

    public List<Blog> selBlogPrevNext(Date time) throws Exception;

    public List<Blog> selBlogByTagName(String tagName) throws Exception;

    public List<Blog> selBlogByCategoryName(String Category) throws Exception;

    public List<Blog> selBlogByPage(int currentPage, int pageCount) throws Exception;
}
